from sys import prefix

import uvicorn
from fastapi import FastAPI

from app.api.endpoints import generate_script, upload
from app.api.endpoints.llm_endpoint import router as llm_router

app = FastAPI(
    title="AI直播大师",
    description="直播话术生成与直播间管理",
    version="0.1.0")

# app.include_router(llm_router, prefix="/llm", tags=["大模型生成"])
# app.include_router(generate_script.router, prefix="/script", tags=["话术生成"])
app.include_router(upload.router,prefix='/api/v1/materials',tags=['文件上传'])

@app.get("/")
def index():
    return {"message": "AI 直播大师 - 大模型服务运行中"}

if __name__ == "__main__":
    uvicorn.run(app, host="127.0.0.1", port=8000)

